<?php use_javascript('/sfFormExtraPlugin/js/double_list.js') ?>
<?php use_javascript('/sfFormExtraPlugin/js/jquery.autocompleter.js') ?>
<?php use_stylesheet('/sfFormExtraPlugin/css/jquery.autocompleter.css'); ?>
<?php use_stylesheet('/sfFormExtraPlugin/css/jquery.foo.css'); ?>

<?php include_partial('Paciente/form_slots', array('form' => $form)) ?>
<?php $action_url = $form->getObject()->isNew()
                    ? '@paciente_nuevo?parent_slug='.$usuario->getSlug()
                    : '@paciente_editar?slug='.$form->getObject()->getSlug()
?>
<?php include_partial
      (
        'Crud/edit', 
        array
        (
          'form'       => $form,
          'action_url' => $action_url,
        ))
?>

<?php echo javascript_tag
(
  sprintf
  (
    '
    function preSubmitForm()
    {
      sfDoubleList.submit(document.forms.%s, "double_list_select");
      return true;
    }
    ', 
    $sf_params->get('uClass')
  )
)
?>
